<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>
    {block name="title"}
        走心更走胃-首页
    {/block}
    </title>
    {load href="/static/css/index.css" /}
    {block name="css"}{/block}
</head>

<body>
<!--头部开始-->
<header>
    <div class="logo"><img src="__CDN__/static/images/logo.jpg" alt="" class="lazyload"></div>
    <div class="nav">
        <ul>
            <li><a href="/food">首页</a></li>
            <li><a href="#">关于我们</a></li>
            <li><a href="#">热量计算</a></li>
            <li><a href="food/comment">网站反馈</a></li>
        </ul>
    </div>
    <div class="search">
        <form action="/list">
            <input type="text" name="name">
        </form>
        <img src="/static/images/search.png" class="searchBtn lazyload">
    </div>
    <div class="login">
        <ul>
            {if condition="null ===$Think.session.user"}
            <li><a href="{:url('food/auth/register')}">注册</a></li>
            <li><a href="{:url('food/auth/login')}">登录</a></li>
            {else /}
            <li style="margin-left: -20px;"><a href="#">欢迎您，{$Think.session.user.phone}</a></li>
            <li><a href="/logout">退出</a></li>
            {/if}
        </ul>
    </div>
</header>
<!--头部结束-->

{block name="slider"}{/block}

<div class="wrapper">
    {block name="main"}{/block}
    <footer>
        <!--底部开始-->
        <div class="line">
            <h3>走胃更走心---吃得健康又营养!</h3>
        </div>
        <p class="link">友情链接: <a href="http://life.iqiyi.com/">爱奇艺生活</a> <a href="http://www.zhms.cn/">中华美食网</a>
            <a href="http://www.pcbaby.com.cn/">太平洋亲子网</a> <a href="http://food.poco.cn/">POCO美食网</a>
            <a href="http://www.21food.cn/">食品商务网</a> <a href="http://www.mama.cn/">妈妈网</a>
            <a href="http://www.39yst.com/">三九养生堂</a> <a href="http://www.258.com/">企业服务平台</a>
            <a href="http://www.yidianzixun.com/">一点资讯</a> <a href="http://www.hc360.com/">慧聪网</a>
        </p>
        <p class="copyright">版权所有 © 2004-2019 走心更走胃 保留所有权利</p>
        <!--底部结束-->
    </footer>
</div>
<script src="/static/js/jquery-1.11.1.js"></script>
<script src="/static/js/slider.min.js"></script>
<script type="text/javascript" src="//cdn.bootcss.com/jquery.lazyload/1.9.1/jquery.lazyload.min.js" ></script>
{block name="js"}{/block}
</body>
</html>